package com.app.game.bet.numeric;

public class BetCorner extends BetNumeric{
	private int initialNumber;
	
	public BetCorner(int initialNumber) {
		this.initialNumber = initialNumber;
		setRating(8);
	}

	@Override
	protected boolean isWin(int result) {
		if(result == initialNumber){
			return true;
		}
		if(result == initialNumber + 1){
			return true;
		}
		if(result == initialNumber + 3){
			return true;
		}
		if(result == initialNumber + 4){
			return true;
		}
		return false;
	}
}
